from abc import ABCMeta, abstractmethod

from vnpy_ctp.core.trader.trader import BaseTrader


class BaseStrategy(metaclass=ABCMeta):
    def __init__(self, trader: BaseTrader):
        self._trader = trader

    @abstractmethod
    async def on_ticker(self, ticker):
        pass

    @abstractmethod
    async def on_min(self, min):
        pass
